<?php
/**
 * Page to register an instructor
 */
?>
<?php require_once 'register_generic.php'; ?>
<script>
function setProfileId(id){
	//a bit of indirection so I don't have to change the login() method, sets the username and password to a couple of hidden fields, the login method then grabs the data from there
	$("#username").val(username);
	$("#password").val(password);	
	insertNewInstructor(id, login);
}

</script>
<h1>Register as an instructor</h1>

<?php 
//gets all the code necessary for registering the profile portion
getProfileRegistration(2);
?>
<br>
<br>
<a href="#register_student">Register as a student</a>
<br>
<a href="#register_admin">Register as an administrator</a>
<br>
<br>
<a href="#login">Login</a>
</body>
</html>